﻿

namespace Mulala.Cavan.Domain.Seedwork
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class BoolResult
    {
        public bool IsSuccess { get; set; }

        public List<string> Messages { get; set; }

        public BoolResult()
        {
            this.IsSuccess = true;
            this.Messages = new List<string>();
        }

        public BoolResult(bool isSuccess, List<string> messages)
        {
            this.IsSuccess = isSuccess;
            this.Messages = messages;
        }
    }

    public class BoolGenericResult<T> : BoolResult
    {
        public T Object { get; set; }

        public BoolGenericResult()
        {           
        }
    }
}
